<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>权重叠加-第二题-继承</title>
  <style>
    div p {
      color: red;
    }

    .father {
      color: blue;
    }
  </style>
</head>

<body>
  <div class="father">
    <p class="son">
      文字
    </p>
  </div>
</body>

</html>